{foreach $query as $res} {if $c == 0} {if !$opa}
    {$res.name}
    {else}
    {$this->lang['p_photos']}
    {/if} {/if}
  • {assign $c $c++ nocache} {/foreach}